{% extends "models/front_simple.html" %}
{% block title %}Mes listes de mots{% endblock %}
{% block content %}


<table class="datatable border" style="min-width: 500px; max-width: 900px">
	<tr class="head">
		<td>Nom</td>
		<td width="80">Partagé</td>
		<td width="120">Nombre de mots</td>
		<td colspan="2"></td>
	</tr>
	{% for list in translation_lists %}
	<tr class="{{ cycle(['odd', 'even'], loop.index%2) }}">
		<td>{{ list.libelle }}</td>
		<td style="text-align: center">
			{% if list.shared %}
			Oui
			{% else %}
			Non
			{% endif %}
		</td>
		<td style="text-align: center">{{ nb_translations_list[list.id_list]|default('0') }}</td>
		<td class="icon">{{ datatable.edit("translation_list_edit.php?id=#{list.id_list}") }}</td>
		<td class="icon noborder">{{ datatable.delete("translation_list_delete.php?id=#{list.id_list}", {confirm: "Voulez-vous supprimer définivement la liste #{list.libelle}?"}) }}</td>
	</tr>
	{% else %}
	<tr class="odd">
		<td colspan="5">Aucune liste présente.</td>
	</tr>
	{% endfor %}
</table>
{% endblock %}